﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Data;
using Data.implement;
using Services.Interface;

namespace Services.Implement
{
    public class PriceRecordService:IPriceRecordService
    {
        public IPriceRecordRepositery priceRecordRepositery;
        public PriceRecordService()
        {
            priceRecordRepositery = DataRepositeryManagerFactory.CreatePriceRecordRepositery();
        }

        public bool SaveRecords(string address, string phoneNum, string name, WeiXinUser userInfo)
        {

            return priceRecordRepositery.InsertPriceRecord(address, phoneNum, name, userInfo);
        }
    }
}
